<?php

declare(strict_types=1);
use Hyperf\Guzzle\HandlerStackFactory;

/**
 * 短信配置
 */
return [
    // 默认发送配置
    'default' => [
        // 网关调用策略，默认：顺序调用
        'strategy' => \Overtrue\EasySms\Strategies\OrderStrategy::class,

        // 默认可用的发送网关
        'gateways' => [
            'chuanglan'
        ],
    ],
    // 可用的网关配置
    'gateways' => [
        'chuanglan' => [
            'account' => 'N6715615',
            'password' => 'm9DnsoLRy60d80',

            // 国际短信时必填
            'intel_account' => '',
            'intel_password' => '',

            // \Overtrue\EasySms\Gateways\ChuanglanGateway::CHANNEL_VALIDATE_CODE  => 验证码通道（默认）
            // \Overtrue\EasySms\Gateways\ChuanglanGateway::CHANNEL_PROMOTION_CODE => 会员营销通道
            'channel'  => \Overtrue\EasySms\Gateways\ChuanglanGateway::CHANNEL_VALIDATE_CODE,

            // 会员营销通道 特定参数。创蓝规定：api提交营销短信的时候，需要自己加短信的签名及退订信息
            'sign' => '【私域大师】',
            'unsubscribe' => '',
        ],
    ],
    'options' => [
        'config' => [
            'handler' => (new HandlerStackFactory())->create([
                'min_connections' => 1,
                'max_connections' => 30,
                'wait_timeout' => 3.0,
                'max_idle_time' => 60,
            ]),
        ],
    ]
];